<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background: url(images/ttang.jpg) no-repeat fixed top center;
            background-position-x: 0px;
            background-size: 50%;
            perspective: 400px;
        }

        .box {
            position: relative;
            width: 360px;
            height: 360px;
            margin: 100px auto;
            transition: all .4s;
            /* 开启3d效果 给父级添加*/
            transform-style: preserve-3d;
            /* alternate 反向播放 */
            -webkit-animation: fan 5s linear 0s infinite alternate;
        }

        @keyframes fan {
            100% {
                transform: rotateY(180deg);
            }
        }

        .box:hover {
            -webkit-animation-play-state: paused;
        }

        .front,
        .back {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            font-size: 10px;
            color: #ff6700;
            line-height: 360px;
        }

        .front {
            background: url(images/考试02jpg.jpg) no-repeat left center;
        }

        .back {
            background: url(images/考试03.jpg) no-repeat;
            z-index: 1;
            transform: rotateY(180deg);
        }

        span {
            position: absolute;
            top: 60px;
            left: 100px;
            font-size: 16px;
        }

        .zf {
            position: absolute;
            left: 245px;
            top: -47px;
            font-size: 30px;
            color: #00a4ff;
        }

        .fs {
            position: absolute;
            top: -100px;
            right: 0;
            width: 761px;
            height: 900px;
            background: url(images/dxq.jpg) no-repeat top center;
            background-size: 1000px;
        }

        .fonts {
            position: absolute;
            background-size: 50%;
            left: 344px;
            top: 476px;
            /* width: 200px; */
            overflow: hidden;
            font-size: 20px;
            white-space: nowrap;
            color: #fff;
            animation: w 10s steps(20) forwards;

        }

        @keyframes w {
            0% {
                width: 0;
            }

            100% {
                width: 400px;
            }
        }
    </style>
</head>

<body>
    <div class="zf">老唐附体,考试全过!!!</div>
    <div class="fs">
        <div class="fonts">愿好运一直陪伴着戴妹儿!祝:戴妹儿考试顺利!</div>
    </div>
    <div class="box">
        <div class="front">
            <span>戴妹儿加油哦, fighting!!!</span>
        </div>
        <div class="back"></div>
    </div>
</body>

</html>